import http from './request'

/*******************************定位卡分类************************************ */
//获取数据
export const locationcardclassificationList = (data,current,size) => {
    return http({
        url: '/api/locationcardclassification/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const locationcardclassificationremove = (ids) => {
    return http({
        url: '/api/locationcardclassification/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function locationcardclassificationSubmit(data){
    return http({
        url: '/api/locationcardclassification/submit',
        method: 'POST',
        data
    })
}
//详情
export function locationcardclassificationdetail(id){
    return http({
        url: '/api/locationcardclassification/detail?id='+id,
        method: 'GET',
    })
}
/*******************************定位卡管理************************************ */
//获取数据
export const locationcardmanageList = (data,current,size) => {
    return http({
        url: '/api/locationcardmanage/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const locationcardmanageremove = (ids) => {
    return http({
        url: '/api/locationcardmanage/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function locationcardmanageSubmit(data){
    return http({
        url: '/api/locationcardmanage/submit',
        method: 'POST',
        data
    })
}
//详情
export function locationcardmanagedetail(id){
    return http({
        url: '/api/locationcardmanage/detail?id='+id,
        method: 'GET',
    })
}
/*******************************信标管理************************************ */
//获取数据
export const locationbeaconmanagementList = (data,current,size) => {
    return http({
        url: '/api/locationbeaconmanagement/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const locationbeaconmanagementremove = (ids) => {
    return http({
        url: '/api/locationbeaconmanagement/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function locationbeaconmanagementSubmit(data){
    return http({
        url: '/api/locationbeaconmanagement/submit',
        method: 'POST',
        data
    })
}
/*******************************成员绑定************************************ */
//获取数据
export const locationmemberbindingList = (data,current,size) => {
    return http({
        url: '/api/locationmemberbinding/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const locationmemberbindingremove = (ids) => {
    return http({
        url: '/api/locationmemberbinding/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function locationmemberbindingSubmit(data){
    return http({
        url: '/api/locationmemberbinding/submit',
        method: 'POST',
        data
    })
}
/*******************************访客绑定************************************ */
//获取数据
export const locationguestbindingList = (data,current,size) => {
    return http({
        url: '/api/locationguestbinding/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const locationguestbindingremove = (ids) => {
    return http({
        url: '/api/locationguestbinding/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function locationguestbindingSubmit(data){
    return http({
        url: '/api/locationguestbinding/submit',
        method: 'POST',
        data
    })
}

/*******************************电子围栏************************************ */
//获取数据
export const locationelectronicfenceList = (data,current,size) => {
    return http({
        url: '/api/locationelectronicfence/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const locationelectronicfenceremove = (ids) => {
    return http({
        url: '/api/locationelectronicfence/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function locationelectronicfenceSubmit(data){
    return http({
        url: '/api/locationelectronicfence/submit',
        method: 'POST',
        data
    })
}
/*******************************报警设置************************************ */
//获取数据
export const locationalarmsettingsList = (data,current,size) => {
    return http({
        url: '/api/locationalarmsettings/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const locationalarmsettingsremove = (ids) => {
    return http({
        url: '/api/locationalarmsettings/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function locationalarmsettingsSubmit(data){
    return http({
        url: '/api/locationalarmsettings/submit',
        method: 'POST',
        data
    })
}
export function locationalarmsettingsdetail(id){
    return http({
        url: '/api/locationalarmsettings/detail?id='+id,
        method: 'GET',
    })
}
/*******************************获取部门人员数************************************ */
export const getDeptUserList = () => {
    return http({
        url: '/api/company/getDeptUserList',
        method: 'GET',
    })
}
/*******************************报警数据************************************ */
//获取数据
export const locationalarmdataList = (data,current,size) => {
    return http({
        url: '/api/locationalarmdata/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const locationalarmdataremove = (ids) => {
    return http({
        url: '/api/locationalarmdata/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function locationalarmdataSubmit(data){
    return http({
        url: '/api/locationalarmdata/submit',
        method: 'POST',
        data
    })
}
// export function locationalarmsettingsdetail(id){
//     return http({
//         url: '/api/locationalarmsettings/detail?id='+id,
//         method: 'GET',
//     })
// }